package com.hkbigdata.source;

import org.apache.flink.streaming.api.datastream.DataStreamSource;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;

/**
 * @author liuanbo
 * @creat 2023-03-17-13:08
 * @see 2194550857@qq.com
 */
public class Flink02_Source_File {
    public static void main(String[] args) throws Exception {
        StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();

        env.setParallelism(1);

        DataStreamSource<String> source = env.readTextFile("D:\\workspace2\\bbd-flink\\hkbigdataflink\\input\\word.txt");

        source.print();

        env.execute();
    }
}
